<!-- ngRepeat + ngResource-->
<ol class="breadcrumb panel">
    <li><a href="#">首页</a></li>
    <li><a href="#">接口</a></li>
    <li class="active">接口列表</li>
</ol>
<div ng-init="list()">
    <!-- START panel-->
    <div class="panel panel-default">
        <div class="panel-heading" ng-click="select()">
            <label class="control-label"><h4>接口列表</h4></label>
        </div>
        <div class="panel-body" ng-repeat="group in groups">

            <h4>{{group.name + ":" + group.key}}</h4>
            <div ng-repeat="interface in group.interfaces">
                <div style="height:5px;"></div>
                <div class="row">
                    <div class="col-lg-5">
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <span class="label label-success">{{interface.method}}</span>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        {{interface.path}}
                    </div>
                    <div class="col-lg-5">{{interface.name}}</div>
                    <div class="col-lg-2">
                        <a class="btn-sm btn-primary" ui-sref="app-api.interface_update({interface:interface})">编辑</a>
                        &nbsp;&nbsp;
                        <a class="btn-sm btn-danger"  ng-click="delete(interface)">删除</a>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- END panel-->
</div>
<toaster-container toaster-options="{'position-class': 'toast-bottom-right', 'close-button':true}"></toaster-container>